package Itertator;

public class Student {

// 定义学生类
        public Integer id;
        public Integer score;
        public String name;
        public String class_;

        public Student(Integer id, Integer score, String name, String class_) {
            this.id = id;
            this.score = score;
            this.name = name;
            this.class_ = class_;
        }
        @Override
        public String toString() {
            return "学号：" + this.id.toString() +  "成绩:"+this.score.toString()
                    + ",姓名：" + this.name +"班级："+this.class_;
        }
}
